package com.nuc.lsp1;

/**
 * Time    : 2023/3/25 11:08
 * Author  : 王摇摆
 * FileName: Bird.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Bird {
    private double flySpeed;

    public void setFlySpeed(double flySpeed) {
        this.flySpeed = flySpeed;
    }

    public double getFlyTime(double distance) {
        return distance / this.flySpeed;
    }
}
